﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BoAddonBiz_FreightForwarder.BusinessBase
{
    public class ControlB1FormAttribute : Attribute
    {
        private bool _IsNew;

        public bool IsNew
        {
            get { return _IsNew; }
            set { 
                if(_IsNew == true)
                    if (string.IsNullOrEmpty(FormType))
                    {
                        throw new TypeAccessException("没有设置窗体类型");
                    }
                _IsNew = value; }
        }
        private string _FormType;

        public string FormType
        {
            get { return _FormType; }
            set { _FormType = value; }
        }
    }
}
